]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Only call gjs_dumpstack() on warnings from main thread
authorSebastian Keller <skeller@gnome.org>
Wed, 21 Jan 2026 21:54:39 +0000 (22:54 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 5 Feb 2026 16:09:29 +0000 (17:09 +0100)
commitc481543906d4f843f8aec26029a760ab82e213ef
tree2bfc1302104d9eee8bca31b5e35e4f1e008f0bde
parent68a6eb56634b31a364adc6cdb4f4f4475aaa2a17
main: Only call gjs_dumpstack() on warnings from main thread

The mozjs code called by gjs_dumpstack() does not appear to be thread
safe and was sometimes resulting in crashes when triggered by error
messages from threads other than the main thread. And even when not
crashing, such a backtrace can only be misleading since only the main
thread is executing JS code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4046>
(cherry picked from commit 23e3e7970f1ef316c0a5bce2dea4872cf1ca5750)
src/main.c